import request from '@/utils/request'

// 获取站点下拉列表
export function getSiteList() {
  return request({
    url: '/dispatch/system/waterQualityReport/siteList',
    method: 'get'
  })
}

// 根据站点获取监测量下拉列表
export function getMonitoringListBySite(params) {
  return request({
    url: '/dispatch/system/waterQualityReport/monitoringList',
    method: 'get',
    params
  })
}

// 获取水质指标报表数据
export function getIndicatorReport(params) {
  return request({
    url: '/dispatch/system/waterQualityReport/indicator',
    method: 'get',
    params
  })
}

// 获取水质监测报表数据
export function getMonitorReport(params) {
  return request({
    url: '/dispatch/system/waterQualityReport/monitor',
    method: 'get',
    params
  })
}

// 导出水质指标报表
export function exportIndicatorReport(params) {
  return request({
    url: '/dispatch/system/waterQualityReport/indicator/export',
    method: 'post',
    params,
    responseType: 'blob'
  })
}

// 导出水质监测报表
export function exportMonitorReport(params) {
  return request({
    url: '/dispatch/system/waterQualityReport/monitor/export',
    method: 'post',
    params,
    responseType: 'blob'
  })
}